home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: The Month 2003 December
/
The Sunday Times - The Month 2003-12.iso
/
mac
/
The Month DEC 03
/
engine
/
modules
/
bespoke.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2003-08-19
|
1KB
|
37 lines
function loadImage(mc, node, extrapath)
{
extrapath != null ? 0 : (extrapath = "");
var strDefaultPath = Tardis.ASSETS_FOLDER + "images/" + Tardis.ActiveSection.id + "/";
var strImg = node.getText();
var diffpath = node.attributes.path;
if(diffpath != null)
{
strImg = diffpath + strImg;
}
else
{
strImg = strDefaultPath + extrapath + strImg;
}
strPathPrefix != null ? 0 : (strPathPrefix = "");
mc.loadMovie(strPathPrefix + strImg);
}
function init()
{
var strFile = nodeData.getText();
var strW = nodeData.attributes.width;
var strH = nodeData.attributes.height;
var pt = {x:0,y:0};
this.localToGlobal(pt);
lingo("Flsh_bespokeLoad \"" + strFile + "\"," + pt.x + "," + pt.y + "," + strW + "," + strH + ",\"" + this + "\"");
onComplete();
}
_visible = false;
stop();
onReady();
this.onUnload = function()
{
lingo("Flsh_bespokeKill \"" + this + "\"");
delete this.onUnload;
this.unloadMovie();
};